package com.sailors.common.task.provider.infra.design.common.rest;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class PageReq {
    @ApiModelProperty(value = "每页条数")
    @NotNull(message = "分页参数不能为空")
    @Min(value = 1, message = "分页参数不合法")
    private Long pageSize = 1L;

    @ApiModelProperty(value = "当前页码")
    @NotNull(message = "分页参数不能为空")
    @Min(value = 1, message = "分页参数不合法")
    private Long pageNumber = 10L;
}
